package org.jivesoftware.smackx.pubsub;

public enum SubscribeOptionFields
{
  static
  {
    subscription_depth = new SubscribeOptionFields("subscription_depth", 7);
    SubscribeOptionFields[] arrayOfSubscribeOptionFields = new SubscribeOptionFields[8];
    arrayOfSubscribeOptionFields[0] = deliver;
    arrayOfSubscribeOptionFields[1] = digest;
    arrayOfSubscribeOptionFields[2] = digest_frequency;
    arrayOfSubscribeOptionFields[3] = expire;
    arrayOfSubscribeOptionFields[4] = include_body;
    arrayOfSubscribeOptionFields[5] = show_values;
    arrayOfSubscribeOptionFields[6] = subscription_type;
    arrayOfSubscribeOptionFields[7] = subscription_depth;
    ENUM$VALUES = arrayOfSubscribeOptionFields;
  }

  public static SubscribeOptionFields valueOfFromElement(String paramString)
  {
    SubscribeOptionFields localSubscribeOptionFields;
    String str = paramString.substring(paramString.lastIndexOf(36));
    if ("show-values".equals(str))
      localSubscribeOptionFields = show_values;
    while (true)
    {
      return localSubscribeOptionFields;
      localSubscribeOptionFields = valueOf(str);
    }
  }

  public String getFieldName()
  {
    String str;
    if (this == show_values)
      str = "pubsub#" + toString().replace('_', '-');
    while (true)
    {
      return str;
      str = "pubsub#" + toString();
    }
  }
}